package com.xyh.flowershop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xyh.flowershop.domain.Type;
import com.xyh.flowershop.vo.resp.common.KV;
import com.xyh.flowershop.vo.resp.index.TypeIndexRespVo;
import com.xyh.flowershop.vo.resp.type.TypePageRespVo;
import com.xyh.flowershop.vo.req.type.TypeEditReqVo;
import com.xyh.flowershop.vo.req.type.TypePageReqVo;
import com.xyh.flowershop.vo.resp.type.TypeRespVo;

import java.util.List;

public interface TypeService extends IService<Type> {
    List<TypeIndexRespVo> getTypeList();

    Boolean addType(TypeEditReqVo vo);

    Boolean editType(TypeEditReqVo vo);

    Boolean deleteType(Long id);

    Boolean deleteBatchType(List<Long> ids);

    IPage<TypePageRespVo> getPageType(TypePageReqVo vo);

    TypeRespVo getType(Long id);

    List<KV> selectTypeKV();

}
